﻿namespace TestTool.Tests.Definitions.Trace
{
    using System;
    using System.Collections.Generic;

    [Serializable]
    public class TestLog
    {
        private List<StepResult> _steps = new List<StepResult>();
        private string _testErrorMessage;
        private TestTool.Tests.Definitions.Trace.TestStatus _testStatus;

        private void AddStepResult(StepResult result)
        {
            this._steps.Add(result);
        }

        public string ErrorMessage
        {
            get
            {
                return this._testErrorMessage;
            }
            set
            {
                this._testErrorMessage = value;
            }
        }

        public List<StepResult> Steps
        {
            get
            {
                return this._steps;
            }
        }

        public TestTool.Tests.Definitions.Trace.TestStatus TestStatus
        {
            get
            {
                return this._testStatus;
            }
            set
            {
                this._testStatus = value;
            }
        }
    }
}

